﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>MERCHANT CENTER</title>
		<%@ include file="/share/include.jsp" %>
   		 <meta name="viewport" content="width=device-width, initial-scale=1">
		 <script type="application/x-javascript"> 
			addEventListener("load", function() { 
				setTimeout(hideURLbar, 0); 
			}, false); 
			function hideURLbar(){ 
				window.scrollTo(0,1); 
			} 
		</script>
		<script type="text/javascript">
			$(function(){
				//表单提交前 验证 表单
		        var demo = $("#updateForm").Validform({
					btnSubmit : "#btn_sub",
					tiptype : 3,
					beforeCheck:function(curform){
						 
					 },
					 beforeSubmit:function(data){
						 
					 }
				});
				//设置验证成功后的提示信息
				demo.tipmsg.r = 'Through verification!';
				
				var editCodeStatus = '${editCodeStatus}';
				if(editCodeStatus != null && editCodeStatus != '' && editCodeStatus == 'success'){
					artDalog('Prompt','Password reset successful!','${root }/control/shop/shopController/displayShop.do?shopId=${suSession.shopId}');
				}
			});
		</script>
		<style type="text/css">
			.text-fild-register{
				width:48%;
				margin-right:4%;
				float:left;
			}
			.text-fild-register span{
				display:block;
				/* padding:0 0 0.5em 0; */
			}
			.text-fild-register input[type="text"],.text-fild-register input[type="password"],.text-fild-register input[type="email"]{
				padding:0.8em;
				width:100%;
				outline:none;
				color:#b0aaa0;
				font-family: 'Lora', serif;
				border: 1px solid #DAD8D8;
			}
			.text-fild-register:nth-child(2){
				margin:0;
			}
		</style>
	</head>
	<body>
		<!-- container -->
		<!-- header -->
		<div class="header">
			<%@ include file="/control/jsp/layout/header.jsp" %>
			<!-- /bottom-header -->
		</div>
		<!-- header -->
		<!--- top-nav -->
			<%@ include file="/control/jsp/layout/sellerMenu.jsp" %>
		<!--- top-nav -->
		<!-- Product-Details-page -->
		<div class="details-page">
			<div class="content details-page">
				<div class="product-details">
					<div class="container">
						<div class="details-left" style="width: 100%;">
						    <h4 style="color:red;"><img style="padding: 10px;" src="${root}/images/bx.gif" />Password reset</h4>
							<form id="updateForm" action="${root }/control/shop/shopController/editShopUserCode.do" method="post">
								<div class="text">
									<div class="text-fild-register" style="margin-left: 20%;">
										<span>Username:</span>
										<input type="hidden" name="shopUserId" value="${shopUser.shopUserId }" >
										<input type="text" class="text" value="${shopUser.shopUserName }" readonly="readonly" disabled="disabled" >
									</div>
									<div class="text-fild-register" style="margin-left: 20%;">
										<span>Old Password:</span>
										<input type="password" name="oldPassword" class="text" ajaxurl="${root}/control/shop/shopController/checkOldPassword.do?json=${shopUser.password}" value="" placeholder="The original password here" maxlength="50" dataType="*6-50" nullmsg="Please fill in the original password!" errormsg="Password length in 6 ~ 50 between!">
									</div>
									<div class="text-fild-register" style="margin-left: 20%;">
										<span>New Password:</span>
										<input type="password" name="password" class="text" value="" placeholder="Your new password here" maxlength="50" dataType="*6-50" nullmsg="Please fill in the new password!" errormsg="Password length in 6 ~ 50 between!">
									</div>
									<div class="text-fild-register" style="margin-left: 20%;">
										<span>Confirm Password::</span>
										<input type="password" class="text" recheck="password" value="" placeholder="Repeat new password here" maxlength="50" dataType="*6-50" nullmsg="Please confirm new password!" errormsg="Two enter the password does not match!">
									</div>
									<div class="clearfix"> </div>
								</div>
								<input type="submit" class="p-btn" style="margin: 10px;margin-left: 20%;" value="Submit">
							</form>
						</div>
						<div class="clearfix"> </div>
					</div>
			    </div>
		    </div>
		</div>
		<!-- /Product-Details-page -->
		<!-- footer -->
		<%@ include file="/control/jsp/layout/footer.jsp" %>
</body>
</html>

